package com.atguigu.test.asm;

/**
 * @author zp
 * @version 1.0
 * @description: 类加载类
 * @date 2022/12/21 19:30
 */
public class EmployeeClassLoader extends ClassLoader {

    public Class defineClassFromClassFile(String className,byte[] classFile) throws ClassFormatError{
        return defineClass(className, classFile, 0, classFile.length);
    }

    public Class<?> defineClassForName(String name, byte[] data) {
        return this.defineClass(name, data, 0, data.length);
    }
}
